<template>
	<div class="flex box-row-column">
		<el-tabs v-model="activeName" class="demo-tabs">
			<el-tab-pane label="主编单位信息" name="first">
				<sscompany></sscompany>
			</el-tab-pane>
			<el-tab-pane label="参编单位信息" name="second"></el-tab-pane>
			<el-tab-pane label="主要起草人员" name="third"></el-tab-pane>
		</el-tabs>

		<div slot="footer" class="dialog-footer mt10">
			<el-button type="primary" plain>暂存</el-button>
			<el-button type="primary">保存</el-button>
			<el-button type="primary" plain>取消</el-button>
		</div>
	</div>
</template>
<script setup lang="ts">
import { ref } from 'vue'
import { min } from 'xe-utils'
import Cfupload from '@/components/cf-upload/index.vue'
import sscompany from './songshen/company.vue'

const queryParams = ref({ keywords: '', date: '', dept_id: '' })
const queryForm = ref()
const activeName = ref('first')
const datatimelist = ref([])
const list = ref([
	{ name: 'aaa', sex: 1, index: 1 },
	{ name: 'ccc', sex: 1, index: 2 }
])
const zylist = [
	{ name: '1', value: 0 },
	{ name: '2', value: 1 },
	{ name: '3', value: 2 }
]
const gklist = [
	{ name: '公开', value: 0 },
	{ name: '不公开', value: 1 },
	{ name: '全选', value: 2 }
]
const jdstatuslist = [
	{ name: '正常', value: 0 },
	{ name: '滞销', value: 1 },
	{ name: '撤销', value: 2 },
	{ name: '归档', value: 3 }
]

const jobstatusoptions = [
	{ name: '全部', value: 0 },
	{ name: '在职', value: 1 },
	{ name: '离职', value: 2 }
]
const loading = ref(false)
const handleSearch = () => {
	console.log('搜索参数:', queryParams.value)
	// const { dateRange, ...searchParams } = searchFormState.value
	// const [startTime, endTime] = Array.isArray(dateRange) ? dateRange : [null, null]

	// // 搜索参数赋值
	// Object.assign(searchState, { ...searchParams, startTime, endTime })
	// searchData()
}

const handleReset = () => {
	//addCacheLog('🔄 重置搜索')
	// // 重置搜索表单状态
	// searchFormState.value = { ...defaultFilter.value }
	// resetSearch()
}
</script>

<style lang="scss" scoped>
.kuaibj {
	background-color: #f5f6fa;
	padding: 20px;
	border-radius: 6px;
}
</style>
